package com.study.service;

import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

@Service
public class UserServiceImpl implements UserService{

    public String sayHello(String word) {
        System.out.println("=======>成功调用，参数：" + word);
        String result = "";
        if(!StringUtils.isEmpty(word)){
            if("visit success or fail!!".equals(word)){
                result = "success";
            }else{
                result = "fail";
            }
        }else {
            result = "fail";
        }
        return result;
    }

}
